﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using OF.Component.Model;
using OF.Utility;

namespace User.Api.Models
{
    /// <summary>
    /// 用户认证信息返回结果
    /// </summary>
    public class ResponseUserAuthGet:UserAuthInfo
    {
        /// <summary>
        /// 证件类型文本显示
        /// </summary>
        [DataMember]
        public string CertificateTypeText
        {
            get
            {
                string szReturn = CertificateType.Switch
                    (
                    new [] {1,2,3,4},
                    new [] { "身份证", "军官证", "护照", "其他证件" },
                    ""
                    );
                return szReturn;
            }
        }

        /// <summary>
        /// 用户认证级别文本显示
        /// </summary>
       [DataMember]
        public string AuthLevelText
        {
            get
            {
                string szReturn = AuthLevel.Switch
                 (
                 new[] { 1, 2 },
                 new[] { "身份认证", "活体认证" },
                 ""
                 );
                return szReturn;
            }
        }
    }
}